<?php
    include "ketnoi.php";
    $sql="select * from tin_tuc order by id desc limit 0,4";
    $result = mysql_query($sql);
    while ($row = mysql_fetch_array($result)) {
        $link_chi_tiet="?thamso=chi_tiet_tt&id=$row[id]";
        $link_hinh="image/tin_tuc/".$row['hinh_anh'];
        echo "<div class='news_item'>";
        echo "<table width='210' cellspacing='0' cellpadding='0' border='0' align='center'>";
            echo "<tr>";
                echo "<td>";
                    echo "<a href='$link_chi_tiet'>";
                        echo "<img src='$link_hinh'>";
                    echo "</a>";
                echo "</td>";
                echo "<td>";
                    echo "<a href='$link_chi_tiet' class='' >";
                        echo $row['ten'];
                    echo "</a>";
                echo "</td>";
            echo "</tr>";
        echo "</table>";
        echo "</div>";
}
?>